import request from '@/utils/request'
// 供应商类型
export default {
  // 添加
  add(params) {
    return request.post('/v3/inventory/supplierType/add', {...params,systemNo:sessionStorage.systemNo})
  },
  // 批量添加
  batchAdd(params) {
    return request.post('/v3/inventory/supplierType/addList', params)
  },
  // 编号删除
  numberDel(params) {
    return request.get(`/v3/inventory/supplierType/delByNo?no=${params}`)
  },
  // 编号批量删除
  numberBatchDel(params) {
    return request.post('/v3/inventory/supplierType/delListByNo', params)
  },
  // 修改
  edit(params) {
    return request.post('/v3/inventory/supplierType/edit', params)
  },
  // 条件查询
  conditionQuery(params) {
    return request.post('/v3/inventory/supplierType/queryByCondition', {...params,systemNo:sessionStorage.systemNo})
  },
  // 编号查询
  numberQuery(params) {
    return request.get(`/v3/inventory/supplierType/queryByNo?no=${params}`)
  },
  // 编号批量查询
  numberBatchQuery(params) {
    return request.post('/v3/inventory/supplierType/queryListByNo', params)
  },
  // 分页查询
  pageQuery(params) {
    return request.post('/v3/inventory/supplierType/queryPageByCondition', {
      ...params,
      entity:{
        ...params.entity,
        systemNo:sessionStorage.systemNo
      }
    })
  }
}
